package com.nintendo.entity;

import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class Category {
    /**
     * id bigint not null comment 'id',
     *     parent bigint not null default 0 comment '父id',
     *     name varchar(50) not null comment '名称',
     *     sort int comment '顺序',
     *     primary key (id)
     */
    private Long id;
    private Long parent;
    private String name;
    private Integer sort;

}
